package com.jy.api.misc.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;
import java.util.List;

@Getter
@Setter
@ApiModel("逻辑模型-数据集")
public class DMLuoJiMXSJJDto {

    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long id;

    private LocalDateTime chuangJianSJ;

    private LocalDateTime xiuGaiSJ;

    private Integer zuoFeiBZ;

    @ApiModelProperty("逻辑模型id")
    @NotBlank(message = "逻辑模型ID不能为空")
    private String luoJiMXId;

    @ApiModelProperty("是否同步, 逻辑模型数据集id")
    private String luoJiMXSJJId;

    @ApiModelProperty(value = "数据集标识符")
    private String shuJuJBSF;

    @ApiModelProperty(value = "数据类型 固定数据集")
    private String shuJuLX;

    @ApiModelProperty(value = "数据集名称")
    private String mingCheng;

    @ApiModelProperty(value = "版本")
    private Integer banBen;

    @ApiModelProperty("发布机构")
    private String faBuJG;

    private LocalDateTime faBuSJ;

    @ApiModelProperty("0未发布 1已发布 2废弃")
    private Integer zhuangTai;

    @ApiModelProperty("上级id")
    private String shangJiID;

    @ApiModelProperty("上级名称")
    private String shangJiMC;

    @ApiModelProperty("参考文件")
    private String canKaoWJ;

    private String miaoShu;

    @ApiModelProperty("1:业务域、2:数据集")
    private Integer type;

    @ApiModelProperty("数据集其下字段详情")
    private List<DMLuoJiMXSJJZDDto> ziDuanList;
}
